//
//  EditAvatarCell.m
//  NiubilityProject
//
//  Created by Apple on 2017/11/29.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "EditAvatarCell.h"

@interface EditAvatarCell ()
@property (weak, nonatomic) IBOutlet UILabel *editAvatarL;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *leftSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *rightSpace;

@end

@implementation EditAvatarCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.editAvatarL.text = JSLocalizedString(@"EditAvatar");
    self.leftSpace.constant = kRealValue(10);
    self.rightSpace.constant = kRealValue(10);
}
- (void)drawRect:(CGRect)rect
{
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextSetFillColorWithColor(context, [UIColor clearColor].CGColor);
    CGContextFillRect(context, rect);
    //下分割线
    CGContextSetStrokeColorWithColor(context, JS_colorWithHex(0xe7e7e7).CGColor);
    CGContextStrokeRect(context, CGRectMake(0, rect.size.height, rect.size.width, flatf(1))); //SINGLE_LINE_HEIGHT 为线的高度
}
@end
